//
//  UIImageView+Extension.m
//  BirdLoveSheep
//
//  Created by wwj on 16/4/11.
//  Copyright © 2016年 wwj. All rights reserved.
//

#import "UIImageView+Extension.h"
#import "UIImage+Extension.h"
#import <UIImageView+WebCache.h>

@implementation UIImageView (Extension)
- (void)fw_setImage:(NSURL *)url{
    UIImage *defaultImg = [[UIImage imageNamed:@"defaultUserIcon"] getCirlImage];
    
    [self sd_setImageWithURL:url placeholderImage:defaultImg completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        self.image = image ? [image getCirlImage]: defaultImg;
    }];
}
@end
